<%@ page contentType="text/html; charset=GBK"  %>
<%@page import="java.util.*"%>
<%@page import="com.ionglobal.db.*" %>
<%@page import="com.ionglobal.misc.*" %>
<%@page import="com.ionglobal.lib.*" %>
<%@page import="com.gzgi.weqs.compenmanage.*" %>
<%@page import="com.gzgi.weqs.common.ResultsetToJson"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ include file="/include/init_include.jsp" %>
<%
	int pageid = Request.getParameterInt("pageid", 0);
	int pagesize = Request.getParameterInt("pagesize", 20);
	int priceAgreementId = Request.getInt("id");
	
	
	String sql = "select pai.* from PQM_PRICEAGREEMENTITEM pai where 1=1 and pai.ipriceAgreementId=" + priceAgreementId;
	ResultsetToJson jsonTool = new ResultsetToJson();
	String jsonString = jsonTool.getStringJsonOrderBy(dbi, sql, "pai.iId", "ASC", pageid, pagesize);
	out.println(jsonString);
%>
<%@ include file="/include/init_free.jsp" %>